﻿
namespace ZR.Model.Models.ProductionControl
{
    /// <summary>
    /// 工艺明细表
    /// </summary>
    [SugarTable("cks_technique_details")]
    [Table(Name = "cks_technique_details")]
    public class CksTechniqueDetails : BaseEntity
    {
        /// <summary>
        /// 主键 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Column(IsPrimary = true, IsIdentity = false)]
        public int Id { get; set; }

        /// <summary>
        /// 工艺表Id 
        /// </summary>
        public int TechniqueId { get; set; }

        /// <summary>
        /// 信号名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 数据项关联的模板Id
        /// </summary>
        public int ItemTemplateId {  get; set; }

        public int Sequence {  get; set; }
        /// <summary>
        /// 设定值 
        /// </summary>
        public string ConfigValue { get; set; } = "";

        public int DataId { get; set; }

        public bool IsPrimary { get; set; }
        /// <summary>
        /// CreatedTime 
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;
        [SugarColumn(IsIgnore = true)]
        [Column(IsIgnore = true)]
        public CksPlcDataPosition S7Point { get; set; }
    }
}